﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace J.StatusRepository.Migrations
{
    public partial class liboyu2 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CleanRoom",
                table: "RoomNumManage");

            migrationBuilder.DropColumn(
                name: "DirtyRoom",
                table: "RoomNumManage");

            migrationBuilder.DropColumn(
                name: "IsLive",
                table: "RoomNumManage");

            migrationBuilder.DropColumn(
                name: "IsMaintain",
                table: "RoomNumManage");

            migrationBuilder.DropColumn(
                name: "IsReserve",
                table: "RoomNumManage");

            migrationBuilder.DropColumn(
                name: "IsRetain",
                table: "RoomNumManage");

            migrationBuilder.AddColumn<int>(
                name: "RoomState",
                table: "RoomNumManage",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "RoomStates",
                table: "RoomNumManage",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "RoomState",
                table: "RoomNumManage");

            migrationBuilder.DropColumn(
                name: "RoomStates",
                table: "RoomNumManage");

            migrationBuilder.AddColumn<bool>(
                name: "CleanRoom",
                table: "RoomNumManage",
                type: "bit",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "DirtyRoom",
                table: "RoomNumManage",
                type: "bit",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsLive",
                table: "RoomNumManage",
                type: "bit",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsMaintain",
                table: "RoomNumManage",
                type: "bit",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsReserve",
                table: "RoomNumManage",
                type: "bit",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsRetain",
                table: "RoomNumManage",
                type: "bit",
                nullable: true);
        }
    }
}
